import personInfo from "./page/personInfo";
import uploadVideos from "./page/uploadVideos";
import artApply from "./page/artApply";
import onlineVideo from "./page/onlineVideo";
import menuList from "./page/menuList";
import { user } from "./prefix";
import artWork from "./page/artwork";
import home from "./page/home";
import artList from "./page/artList";
import dynamic from "./page/dynamic";
import artShop from "./page/artShop";
import followMessage from "./page/followMessage";
import aboutUs from "./page/aboutUs"
let AxiosApi = [
  // 注册
  {
    name: "register",
    url: user + "/user_register",
    method: "POST",
  },
  // 注册获取短信验证码
  {
    name: "getRegisterCode",
    url: user + "/user_register",
    method: "GET",
  },
  // 重置密码获取短信验证码
  {
    name: "getResetCellCode",
    url: user + "/user_rspwd",
    method: "GET",
  },
  // 手机号重置密码
  {
    name: "resetPassword",
    url: user + "/user_rspwd",
    method: "POST",
  },
  // 旧密码重置密码
  {
    name: "editPassword",
    url: user + "/user/:data_id",
    method: "POST",
  },
  // 账密登陆
  {
    name: "login",
    url: user + "/login",
    method: "POST",
  },
  // 手机号登陆获取短信验证码
  {
    name: "getLoginCode",
    url: user + "/login",
    method: "GET",
  },
  // 获取用户头像
  {
    name: "getUserInfo",
    url: user + "/user/:data_id",
    method: "GET",
  },
  ...personInfo, // 个人信息
  ...uploadVideos, // 作品管理页面上传视频
  ...menuList, // 顶部导航栏菜单列表
  ...onlineVideo, // 在线视频页接口
  ...artApply, // 申请成为艺术家
  ...artWork,
  // 主页的接口
  ...home,
  ...artList,
  ...dynamic,
  ...artShop,
  ...followMessage,
  ...aboutUs
];

export default AxiosApi;
